\documentclass[a4paper,11pt]{article}
%
% HOW TO USE THIS TEMPLATE:
%
% IN THE TWO INDICATED PLACES BELOW,
%   ENTER YOUR NAMES AND THE NUMBER OF THE HOMEWORK
%
% FOR EACH PROBLEM IN THE SET, WRITE YOUR SOLUTION IN A FILE
%   NAMED "Problem1.tex", "Problem2.tex", etc.
%   THESE SOLUTIONS FILES HAVE NO PREAMBLE (\documentclass,
%   \usepackage, etc) ANDNO \begin{document} \end{document}
%   (THEY JUST GET INLINED WHEN RUNNING LaTeX)
%
% THIS FILE IS SET UP FOR 4 PROBLEMS, SO COMMENT OUT OR
%   UNCOMMENT PROBLEM BLOCKS (AT END OF FILE) AS NECESSARY.
%
% PLACE THESE SOLUTIONS FILES AND THE TEMPLATE IN THE SAME DIRECTORY
%
% RUN LaTeX-LaTeX-dvips-psp2df, or run pdfLaTeX, or run whatever chain
%   you normally use
%
% IF YOU NEED TO ADD PACKAGES (E.G., FOR HANDLING FIGURES, OR
%   FOR RUNNING PDFLaTeX), , UNCOMMENT LINE BELOW AND ENTER THE PACKAGE NAMES
%  \usepackage{additional_package_1,additional_package_2}
\usepackage{amssymb}
\usepackage{tikz}
\usetikzlibrary{shadows}
\usetikzlibrary{arrows}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{makeidx}
\usepackage{listings}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{wrapfig}

%%%% NOTE: IF YOUR LAST NAME HAS ACCENTS, SOME LaTeX COMMANDS ARE:
%%%%       for diaeresis/umlaut ", as in German, use \"a, \"u, \"o, etc.
%%%%       for grave accent `, use \`e, \`a, \`u
%%%%       for acute accent ', use \'a, \'e, \'u
%%%%       for tilde ~, use \tilde{a}, \tilde{o}
%%%%       for caret ^, use \hat{e}, \hat{o}
%%%%	   if you need an accent on an i, say an umlaut, use \"\i{}
%%%%		the \i{} is an i without its dot; e.g., na\"\i{}ve
%%%%	   these all work well with lower-case letters,
%%%%	        but only so-so with upper-case letters
%%%%
%%%% REPLACE Doe, Smith, and Wilson WITH YOUR LAST NAMES
  \def\myname{Sintsova, Trigonakis, and Picorel}
%%%% REPLACE xxx WITH CORRECT HOMEWORK NUMBER
  \def\mynumber{006}



% DO NOT MODIFY THIS NEXT PART
%%%%%
  \usepackage{times,amsmath,pslatex,graphicx}
  \newcounter{problem}
  \setcounter{problem}{0}
  \makeatletter
  \def\ps@headings{%
    \let\@mkboth\markboth
    \def\@evenfoot{\hfil\large\sf Homework \mynumber, Problem \theproblem\hfil}
    \def\@oddfoot{\@evenfoot}
    \def\@evenhead{\large\sc\myname\hfil\it\today\hfil\sf P.~\thepage}
    \def\@oddhead{\@evenhead}}
  \makeatother
  \pagestyle{headings}
  \advance\textwidth by16mm
  \advance\oddsidemargin by-8mm
  \advance\textheight by10mm
%%%%%

\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{flushleft}
  \addtocounter{problem}{1}
  \large\sf Problem \theproblem .
\end{flushleft}

\input{problem1.tex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\begin{flushleft}
  \addtocounter{problem}{1}
  \large\sf Problem \theproblem .
\end{flushleft}

\input{hw6-problem2.tex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\begin{flushleft}
  \addtocounter{problem}{1}
  \large\sf Problem \theproblem .
\end{flushleft}

\input{problem3.tex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\begin{flushleft}
  \addtocounter{problem}{1}
  \large\sf Problem \theproblem .
\end{flushleft}

\input{problem4.tex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%
% UNCOMMENT PROBLEM TEMPLATES BELOW AS NEEDED FOR ADDITIONAL PROBLEMS
%

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \newpage
 \begin{flushleft}
   \addtocounter{problem}{1}
   \large\sf Problem \theproblem .
 \end{flushleft}
 
 \input{problem5.tex}
% 
 
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \newpage
% \begin{flushleft}
%   \addtocounter{problem}{1}
%   \large\sf Problem \theproblem .
% \end{flushleft}
% 
% \input{problem5.tex}
% 

\end{document}
